package org.vaadin.golfscoretracker.data;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.vaadin.appfoundation.persistence.data.AbstractPojo;

@Entity
public class HoleResult extends AbstractPojo {

    private static final long serialVersionUID = 3870076066066790006L;

    @ManyToOne
    private Hole hole;

    @ManyToOne
    private Round round;

    private Integer result;

    public Hole getHole() {
        return hole;
    }

    public void setHole(Hole hole) {
        this.hole = hole;
    }

    public Round getRound() {
        return round;
    }

    public void setRound(Round round) {
        this.round = round;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

}
